\hypertarget{classService}{\section{Service Class Reference}
\label{classService}\index{Service@{Service}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classService_a7005753e199e8b0683dce63e26d10d93}{virtual void {\bfseries On\-Init} ()}\label{classService_a7005753e199e8b0683dce63e26d10d93}

\item 
\hypertarget{classService_ab6a7b145146f9328bb058568a869d4f7}{virtual void {\bfseries On\-Msg} (std\-::shared\-\_\-ptr$<$ \hyperlink{classBaseMsg}{Base\-Msg} $>$ msg)}\label{classService_ab6a7b145146f9328bb058568a869d4f7}

\item 
\hypertarget{classService_a3e8edec4900b6c63f985e9cc333374b8}{virtual void {\bfseries On\-Exit} ()}\label{classService_a3e8edec4900b6c63f985e9cc333374b8}

\item 
\hypertarget{classService_a1df6167e0ce5c114bd53fa057b2661df}{void {\bfseries Push\-Msg} (std\-::shared\-\_\-ptr$<$ \hyperlink{classBaseMsg}{Base\-Msg} $>$ msg)}\label{classService_a1df6167e0ce5c114bd53fa057b2661df}

\item 
\hypertarget{classService_a210cc8f29721f14f37c260d49d4e1bdd}{bool {\bfseries Process\-Msg} ()}\label{classService_a210cc8f29721f14f37c260d49d4e1bdd}

\item 
\hypertarget{classService_a443f7ddbda89fc40ef084f77086ad645}{void {\bfseries Process\-Msgs} (int max)}\label{classService_a443f7ddbda89fc40ef084f77086ad645}

\item 
\hypertarget{classService_a7081b7da269aa39ce91bd179791aa868}{void {\bfseries On\-Service\-Msg} (std\-::shared\-\_\-ptr$<$ \hyperlink{classServiceMsg}{Service\-Msg} $>$ msg)}\label{classService_a7081b7da269aa39ce91bd179791aa868}

\item 
\hypertarget{classService_ac8d74b95de3d887f0f6a1a6cadcf154e}{void {\bfseries On\-R\-W\-Msg} (std\-::shared\-\_\-ptr$<$ \hyperlink{classSocketRWMsg}{Socket\-R\-W\-Msg} $>$ msg)}\label{classService_ac8d74b95de3d887f0f6a1a6cadcf154e}

\item 
\hypertarget{classService_af9f91984289bb79218e1e3ed81c8a59e}{void {\bfseries On\-Log\-Msg} (std\-::shared\-\_\-ptr$<$ \hyperlink{classLogMsg}{Log\-Msg} $>$ msg)}\label{classService_af9f91984289bb79218e1e3ed81c8a59e}

\item 
\hypertarget{classService_a05b1bf5e9a0c76de67720f3033bfd8dc}{virtual void {\bfseries On\-Accept\-Msg} (std\-::shared\-\_\-ptr$<$ \hyperlink{classSocketAcceptMsg}{Socket\-Accept\-Msg} $>$ msg)}\label{classService_a05b1bf5e9a0c76de67720f3033bfd8dc}

\item 
\hypertarget{classService_ab05f0e333bb71afece98fac0c36d7c28}{virtual void {\bfseries On\-Socket\-Data} (int fd, const char $\ast$buff, int len)}\label{classService_ab05f0e333bb71afece98fac0c36d7c28}

\item 
\hypertarget{classService_a7f5c5e470e1c6e3255786aabfe4765cb}{virtual void {\bfseries On\-Socket\-Writable} (int fd)}\label{classService_a7f5c5e470e1c6e3255786aabfe4765cb}

\item 
\hypertarget{classService_a5478aec70bacd596ad165bc1a1812455}{virtual void {\bfseries On\-Socket\-Close} (int fd)}\label{classService_a5478aec70bacd596ad165bc1a1812455}

\item 
\hypertarget{classService_a12555591b69a328f6e9f7834c89f74c1}{virtual void {\bfseries On\-Packet\-Read} (int fd, Packet\-Base \&packet)}\label{classService_a12555591b69a328f6e9f7834c89f74c1}

\item 
\hypertarget{classService_ade21fd39d3eb66db39a4a8de6b107655}{void {\bfseries Set\-I\-D} (uint32\-\_\-t id)}\label{classService_ade21fd39d3eb66db39a4a8de6b107655}

\item 
\hypertarget{classService_a9ee1d4f039da8881438d5fb5ed846c23}{uint32\-\_\-t {\bfseries Get\-I\-D} ()}\label{classService_a9ee1d4f039da8881438d5fb5ed846c23}

\item 
\hypertarget{classService_a091e9cf88fbed384bf1fa85915c05d2a}{void {\bfseries Set\-Type} (std\-::shared\-\_\-ptr$<$ std\-::string $>$ type)}\label{classService_a091e9cf88fbed384bf1fa85915c05d2a}

\item 
\hypertarget{classService_af14725c5a0cda5aa42b1224472694e0e}{std\-::shared\-\_\-ptr$<$ std\-::string $>$ {\bfseries Get\-Type} ()}\label{classService_af14725c5a0cda5aa42b1224472694e0e}

\item 
\hypertarget{classService_a9b7bf87dc0f95946a2aa05d39a4cb4e5}{void {\bfseries Set\-Exiting} (bool exiting)}\label{classService_a9b7bf87dc0f95946a2aa05d39a4cb4e5}

\item 
\hypertarget{classService_a1439a4d94f3f023525d9a3c790e8eb58}{bool {\bfseries Is\-Exiting} ()}\label{classService_a1439a4d94f3f023525d9a3c790e8eb58}

\item 
\hypertarget{classService_a56628b075473394fde2434c1b9b2f07e}{void {\bfseries Set\-In\-Global} (bool in\-\_\-global)}\label{classService_a56628b075473394fde2434c1b9b2f07e}

\item 
\hypertarget{classService_aedd2ef71753d78278748d07630600c83}{bool {\bfseries Is\-In\-Global} ()}\label{classService_aedd2ef71753d78278748d07630600c83}

\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classService_aae0dc3064992e8e56bf014ecd6213f79}{uint32\-\_\-t {\bfseries id\-\_\-}}\label{classService_aae0dc3064992e8e56bf014ecd6213f79}

\item 
\hypertarget{classService_a56baa1dc9cede0b4ca00f0b8752f722a}{std\-::shared\-\_\-ptr$<$ std\-::string $>$ {\bfseries type\-\_\-}}\label{classService_a56baa1dc9cede0b4ca00f0b8752f722a}

\item 
\hypertarget{classService_adf9fc78ebc092cb2179d8cf893401e3e}{bool {\bfseries exiting\-\_\-} = false}\label{classService_adf9fc78ebc092cb2179d8cf893401e3e}

\item 
\hypertarget{classService_a61f6e9003bab595c9987917793881fa2}{std\-::queue$<$ std\-::shared\-\_\-ptr\\*
$<$ \hyperlink{classBaseMsg}{Base\-Msg} $>$ $>$ {\bfseries msg\-\_\-queue\-\_\-}}\label{classService_a61f6e9003bab595c9987917793881fa2}

\item 
\hypertarget{classService_a752b5f362a1e185ee8c69d9aa21e3737}{pthread\-\_\-spinlock\-\_\-t {\bfseries queue\-\_\-lock\-\_\-}}\label{classService_a752b5f362a1e185ee8c69d9aa21e3737}

\item 
\hypertarget{classService_aaf3d0a494ea0e4b153a5d3c43a1f232d}{bool {\bfseries in\-\_\-global\-\_\-}}\label{classService_aaf3d0a494ea0e4b153a5d3c43a1f232d}

\item 
\hypertarget{classService_afe5f2bc2a6d3d60abf9c03dbad86c7cc}{pthread\-\_\-spinlock\-\_\-t {\bfseries in\-\_\-global\-\_\-lock\-\_\-}}\label{classService_afe5f2bc2a6d3d60abf9c03dbad86c7cc}

\item 
\hypertarget{classService_a50221be32ee45a2874373971a2bc0842}{lua\-\_\-\-State $\ast$ {\bfseries lua\-\_\-state\-\_\-}}\label{classService_a50221be32ee45a2874373971a2bc0842}

\end{DoxyCompactItemize}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
/home/why/workspace/my\-\_\-skynet/include/\hyperlink{service_8h}{service.\-h}\end{DoxyCompactItemize}
